package com.example.springbootweb01.controller;

import org.springframework.web.bind.annotation.*;

import javax.xml.ws.RequestWrapper;
import java.util.List;
import java.util.Map;

@RestController
public class HelloController {
    @ResponseBody
    @RequestMapping("/bug.jpg")
    public String hello() {
        return "<h你好！</h1>";
    }
    @ResponseBody
    @PostMapping("/temp")
    public String temp(
            @RequestParam("hobby") List<String> list ,

            @RequestParam Map<String,Object> params
    ){
        System.out.println("访问了");
        System.out.println("temp = " + params.values());
        System.out.println("list.size() = " + list.size());
        return params.values().toString();
    }
}
